

import ww from "../config/request";
// 注册
export const save = async (page) => {

  return await ww.post("/user/zhuce",page);
};
// 登录
export const dll = async (page) => {

  return await ww.post("/user/denglu",page);
};
// 分类查询
export const fengleis = async (page) => {
  return await ww.post("/fenglei",page);
};
//分类删除
export const fengleisdelete = async (id) => {
  return await ww.post("/shanchu/"+id);
};
//分类添加
export const fengleisadd = async (page) => {
  return await ww.post("/tianjia",page);
};
//分类修改
export const fengleisupdate = async (page) => {
  return await ww.post("/xiugai1",page);
};
//个人资料查询
export const zlcha = async (id) => {
  return await ww.post("/user/cha/"+id);
};

//个人资料修改
export const zlxiu = async (page) => {
  return await ww.post("/user/xiugai",page);
};
//个人资料修改头像
export const asd = async (page) => {
  return await ww.post("/user/xiugaiurl", page);
};
//修改密码
export const mima = async (page) => {
  return await ww.post("/user/xiugaimima",page);
};
//查全表
export const quanbiao = async (id) => {
  
  return await ww.get("/chaquanbiao/"+id);
};